import request from "@/utils/request";

// 配置------------------
// 分页加载
export function commodities_loadPageList(data) {
  return request({
    url: "/sys/commodities/loadPageList",
    method: "post",
    data
  });
}

// 根据id单条获得
export function commodities_loadOne(data) {
  return request({
    url: "/sys/commodities/loadOne",
    method: "post",
    data
  });
}
//商品配置新增编辑
export function commodities_operation(data) {
  return request({
    url: "/sys/commodities/operation",
    method: "post",
    data
  });
}

// 商品配置(禁用启用)
export function commodities_delete(data) {
  return request({
    url: "/sys/commodities/delete",
    method: "post",
    data
  });
}
